package com.heima.user.feign;
import com.heima.common.dto.ResponseResult;
import com.heima.user.dto.Author;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-article")
public interface ArticleFeign {
  /**
  * 保存文章作者
  * @param author
  * @return
   */
  @PostMapping("/api/v1/author")
  public ResponseResult<Author> saveAuthor(@RequestBody Author author);
  }
